<template>
  <div>
    <h1>v-model实现组件双向绑定</h1>
     <my-product title="包子" info='包子馅大皮薄' :value="money" @input="money=$event"/>
     <my-product title="包子" info='包子馅大皮薄' v-model="money"/>
  </div>
</template>

<script>
import MyProduct from './components/MyProduct.vue'
export default {
  components: { MyProduct },
data(){
  return{
    msg:'你好世界',
    money:30
  }
}
}
</script>

<style>

</style>